<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
   <meta name="google-translate-customization" content="457c7458d78f1fda-c04c9be73e1a028e-g6dbca1555c3b1007-18"></meta>
   <LINK href="style.css" rel="stylesheet" type="text/css">
   <title>Mariachi Casa Game Screen</title>
   <style>
      body {
         background-image:url('chips-and-salsa.jpg');
		 background-repeat:no-repeat;
      }
   </style>
</head>



<!-- ------------------------------------------------------------------- -->
<script>
function update(){
	window.close();
}
</script>
<!-- ------------------------------------------------------------------- -->
	
<body>

<!-- update that the game has been played to the server -->

<?php
   	session_start();
	$win = 0;// rand(0,4);

	if($win > 0){
		echo "Sorry, you did not win this time.";
	}
	elseif($_SESSION['played'] >= '3'){
		echo "Congratulations. You win.";		
	}
	else {
		echo "Congratulations! You have won a free desert. A waiter will be by shortly to deliver your coupon.";
		$_SESSION['played'] = 3;
	}

  	$_SESSION['played']++;
	
?>

	<div id="pageBottom">
     	<button class="footerButton" onclick="update()">Close</button>
   	</div>
</body>
</html>